package com.yanqu.road.entity.log.feast;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_feast_tripod_upgrade", desc = "山河乐宴-虚空鼎升级", autoSave = true, eventName = "shfete_insupg", dataUpload = true, uploadCk = true)
public class LogFeastTripodUpgrade extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;

    @FieldTypeAnnotation(desc = "升级前等级", dataAttribute = "shfete_befinslev")
    private int oldLv;

    @FieldTypeAnnotation(desc = "升级后等级", dataAttribute = "shfete_inslev")
    private int newLv;

    public LogFeastTripodUpgrade(long userId, int activityId, int oldLv, int newLv) {
        this.userId = userId;
        this.activityId = activityId;
        this.oldLv = oldLv;
        this.newLv = newLv;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
